package com.monitorRoutine.monitorRoutineServer.clt;

import com.monitorRoutine.monitorRoutineServer.entity.SqlRecord;
import com.monitorRoutine.monitorRoutineServer.entity.SqlResult;
import com.monitorRoutine.monitorRoutineServer.entity.SqlResultVo;
import com.monitorRoutine.monitorRoutineServer.service.MonitorSqlService;
import com.monitorRoutine.monitorRoutineServer.service.ProcessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/monitorProcess")
@Api(tags = "进程 API")
public class MonitorProcessController {
    @Autowired
    ProcessService processService;
    @PostMapping("/scanProcess")
    @ApiOperation(value = "进程 API-进程刷新")
    public Boolean scanProcess() throws IOException {
        processService.scanProcess();
        return true;
    }

}
